package com.hava.demo.springmvc.manytoone.entity;

import com.hava.jpa.IdEntity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by zhanpeng on 15-6-15.
 */
@Entity
@Table(name = "m2omany")
public class M2OMany extends IdEntity {
    
    //ManyToOne没有对One进行链接，操作Entity不会相互影响
    @ManyToOne
    private M2OOne m2OOne;
}
